package cn.hxzy.zyicon.repository;

import cn.hxzy.zyicon.entity.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

public interface UserRepository extends JpaRepository<User,Integer> {
    Optional<User> findByLoginName(String loginName);


    Page<User> findUserByNameLike(Pageable pageable, String name);
}
